<template>
    <el-date-picker
      style="width:100%"
      v-model="grade"
      align="right"
      type="year"
      value-format="yyyy"
      placeholder="请选择"
      :clearable="true"
      @change="handleChange"
    ></el-date-picker>
</template>

<script>
export default {
  name: "defaultGrade",
  props:{
    grade: {
      default: ""
    }
  },
  data() {
    return {
     
    };
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {
      
    },
    handleChange(val){
      //val = _.toString(val)
      this.$emit("input", this.grade);
      this.$emit('change', val);
    },
  }
};
</script>

<style scoped>
</style>
